package com.itbaizhan.dao.impl;

import com.itbaizhan.dao.StudentDao;
import com.itbaizhan.domain.Student;

public class StudentDaoImpl2 implements StudentDao {
    @Override
    public Student findById(int id) {
        return new Student(1,"xujiale","hhu");
    }

    public void init(){
        System.out.println("do this when the bean is created");
    }

    public void destroy(){
        System.out.println("do this when the bean will be destroyed");
    }
}
